<template>
    <el-table 
        v-loading="loading"
        element-loading-text="给我一点时间" border fit
        :data="data"
         style="width: 100%">
        <el-table-column 
            
            v-for="colunm in colunms"
            :prop="colunm.key" 
            :label="colunm.title" 
            v-bind:align="colunm.align"
            v-bind:width="colunm.width">
        </el-table-column>
    </el-table>
</template>

<script>
    export default {
        name: 'baseTable',
        props: {
            data: Array,
            colunms: Array,
            loading: Boolean
        },
        data(){
            return {
                loadings:this.loading,
            }
        }
    }
</script>